FROM adoptopenjdk:8-jdk-openj9

MAINTAINER lemoncoo1

ENV TZ=Asia/Shanghai

RUN ln -sf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

ADD ./target/study_tool-jar-with-dependencies.jar ./

ENV JAVA_OPTS=''

CMD java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar study_tool-jar-with-dependencies.jar
